package com.swiftride.pojo.param;

import com.swiftride.constants.Constants;
import com.swiftride.utils.NameUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class RegisterParam {

    public void init() {
        this.enabled = true;
        this.avatar = Constants.Url.DEFAULT_AVATAR_OSS;
        this.nickName = NameUtil.getName();
        this.name = Constants.DEFAULT_NAME;
    }

    private String username;
    private String password;
    private Integer type;
    private Boolean enabled;
    private String avatar;
    private Boolean admin;
    private String nickName;
    private String openId;
    private String name;
    private String phone;
}
